﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PhieuThu.aspx.cs" Inherits="STT.Report.PhieuThu" %>

<%@ Register assembly="Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" namespace="Microsoft.Reporting.WebForms" tagprefix="rsweb" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <style type="text/css">
        #PrintDiv {
            width: 800px;
        }
        .auto-style1 {
            text-align: center;
            
     
        }
    </style>
</head>
<body>
    <form id="form2" runat="server">
    <div class="auto-style1">
   <input type="button" onclick="printDiv('PrintDiv')" value=" In phiếu " /> 
        <input type="button" onclick="" value="Tải về" /><br />
&nbsp;<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
    </div>
        <hr style="background-color:black"/>
 
    <div id="PrintDiv" style ="width:800px; text-align: center;">
    
        <asp:Literal ID="ltphieuthu" runat="server"></asp:Literal>
        <%--<rsweb:ReportViewer ID="rpvPhieuThu" runat="server" Font-Names="Verdana" Font-Size="8pt" Height="686px" WaitMessageFont-Names="Verdana" WaitMessageFont-Size="14pt" Width="890px" ShowBackButton="False" ShowExportControls="False" ShowFindControls="False" ShowPageNavigationControls="False" ShowParameterPrompts="False" ShowPrintButton="False" ShowPromptAreaButton="False" ShowRefreshButton="False" ShowWaitControlCancelLink="False" ShowZoomControl="False" SizeToReportContent="True">
            <LocalReport ReportPath="RDLC\Report1.rdlc">
               
            </LocalReport>
        </rsweb:ReportViewer>--%>
       
    
    </div>
      </form>
</body>
</html>
<script >
    function printDiv(divName) {
        var printContents = document.getElementById(divName).innerHTML;
        var originalContents = document.body.innerHTML;

        document.body.innerHTML = printContents;

        window.print();

        document.body.innerHTML = originalContents;
    }
</script>